# coding:utf-8
"""
Author: r.xw
Date: 2024/1/1
File: article.py
"""
from flask import Blueprint

from model.article import Article

article = Blueprint('article', __name__)


@article.route('/article/one')
def one():
    article = Article()
    row = article.get_one()
    return f"{row.article_title}"


@article.route('/article/list')
def list():
    article = Article()
    rows = article.get_list(1)
    return f"{rows[0].article_title}"
